package com.zidongxiangxi.clock.server.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author chenxudong
 * @date 2020/10/14
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "clock")
public class ClockConfig {
    /**
     * 闹钟重试次数最大值
     */
    private Integer maxRetryTimes = 3;

    /**
     * 闹钟回调的exchange
     */
    private String callbackExchange = "clock.callback.exchange.direct";

    /**
     * 闹钟回调的最大批次
     */
    private Integer callbackMaxBatchSize = 100;

    /**
     * 数据库模式下的配置
     */
    private ClockDatabaseConfig database;
}
